home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / InstallMaster 7.03 / Devfulldemo.exe / file0198.bin < prev    next >
Encoding:
Wise script  |  1999-04-26  |  4.3 KB  |  200 lines

  1. Document Type: WSE
  2. item: Global
  3.   Version=5.0
  4.   Title=Widget Software Installation
  5.   Flags=01000100
  6.   Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  7.   Japanese Font Name=MS Gothic
  8.   Japanese Font Size=10
  9.   Start Gradient=0 0 255
  10.   End Gradient=0 0 0
  11.   Windows Flags=00000001100000010000010000001000
  12.   Message Font=MS Sans Serif
  13.   Font Size=8
  14.   Disk Filename=SETUP
  15.   Patch Flags=0000000000000001
  16.   Patch Threshold=85
  17.   Patch Memory=4000
  18.   FTP Cluster Size=20
  19. end
  20. item: Remark
  21.   Text=This example shows how to set up a PROXY executable this will be called
  22. end
  23. item: Remark
  24.   Text=the users select to run your application.
  25. end
  26. item: Remark
  27. end
  28. item: Get System Information
  29.   Variable=CURRDATE
  30. end
  31. item: Read INI Value
  32.   Variable=LASTMONTH
  33.   Pathname=%WIN%\WIDGET.INI
  34.   Section=UPGRADE
  35.   Item=MONTH
  36.   Default=01/01/96
  37. end
  38. item: Parse String
  39.   Source=%CURRDATE%
  40.   Pattern=2
  41.   Variable1=CURRMONTH
  42.   Flags=00001000
  43. end
  44. item: Display Message
  45.   Title=A
  46.   Text=%CURRMONTH%
  47.   Text=%LASTMONTH%
  48. end
  49. item: Check Disk Space
  50. end
  51. item: If/While Statement
  52.   Variable=CURRMONTH
  53.   Value=%LASTMONTH%
  54.   Flags=00000001
  55. end
  56. item: Display Message
  57.   Title=New Version
  58.   Text=You haven't checked our internet site for a new version since last month.  Would you like to check it now?
  59.   Flags=00001101
  60. end
  61. item: Set Variable
  62.   Variable=UPGRADE_INI
  63.   Value=ftp://ftp.glbs.com/upgrade/upgrade.ini
  64. end
  65. item: Remark
  66. end
  67. item: Remark
  68.   Text=A COPY OF THIS INI FILE CAN BE FOUND IN THE EXAMPLE DIRECTORY
  69. end
  70. item: Copy Local File
  71.   Source=%UPGRADE_INI%
  72.   Destination=%TEMP%\upgrade.ini
  73.   Description=Upgrade Information
  74.   Local Path=C:\WIN95\DESKTOP\UPGRADE.INI
  75.   Flags=0000000001000010
  76. end
  77. item: Remark
  78. end
  79. item: Read INI Value
  80.   Variable=LASTVERSION
  81.   Pathname=%WIN%\WIDGET.INI
  82.   Section=UPGRADE
  83.   Item=VERSION
  84.   Default=1.0
  85. end
  86. item: Read INI Value
  87.   Variable=RELEASEVERSION
  88.   Pathname=%TEMP%\UPGRADE.INI
  89.   Section=INFORMATION
  90.   Item=ReleaseVersion
  91.   Default=1.0
  92. end
  93. item: Read INI Value
  94.   Variable=RELEASEDATE
  95.   Pathname=%TEMP%\UPGRADE.INI
  96.   Section=INFORMATION
  97.   Item=ReleaseDate
  98.   Default=01/01/96
  99. end
  100. item: If/While Statement
  101.   Variable=RELEASEVERSION
  102.   Value=%LASTVERSION%
  103. end
  104. item: Display Message
  105.   Title=Software Upgrade
  106.   Text=You are using the latest version of our WIDGET software.  Check out our web site at www.widget.com for updates and new product announcments.
  107.   Flags=00000100
  108. end
  109. item: Else Statement
  110. end
  111. item: Custom Dialog Set
  112.   Name=Upgrade Download
  113.   Flags=01110110
  114.   item: Dialog
  115.     Title=New Version
  116.     Width=169
  117.     Height=106
  118.     Font Name=Helv
  119.     Font Size=8
  120.     item: Static
  121.       Rectangle=3 23 162 65
  122.       Create Flags=01010000000000000000000000000000
  123.       Text=Release Date: %RELEASEDATE%
  124.       Text=Release Version %RELEASEVERSION%
  125.       Text=
  126.       Text=Would you like to download and install the upgrade? 
  127.     end
  128.     item: Static
  129.       Rectangle=5 5 164 23
  130.       Create Flags=01010000000000000000000000000000
  131.       Flags=0000000000000001
  132.       Name=Arial
  133.       Font Style=-21 0 0 0 400 0 0 0 0 3 2 1 34
  134.       Text=NEW VERSION AVAILABLE!
  135.     end
  136.     item: Push Button
  137.       Rectangle=31 67 66 82
  138.       Variable=DOUPGRADE
  139.       Value=YES
  140.       Create Flags=01010000000000010000000000000000
  141.       Text=YES
  142.     end
  143.     item: Push Button
  144.       Rectangle=93 68 128 83
  145.       Variable=DOUPGRADE
  146.       Value=NO
  147.       Create Flags=01010000000000010000000000000000
  148.       Text=NO
  149.     end
  150.   end
  151. end
  152. item: If/While Statement
  153.   Variable=DOUPGRADE
  154.   Value=YES
  155. end
  156. item: Set Variable
  157.   Variable=UPGRADE_EXE
  158.   Value=ftp://ftp.glbs.com/upgrade/widgetup.exe
  159. end
  160. item: Copy Local File
  161.   Source=%UPGRADE_EXE%
  162.   Destination=%TEMP%\widgetup.exe
  163.   Description=Upgrade
  164.   Local Path=C:\WIN95\CALC.EXE
  165.   Flags=0000000001000010
  166. end
  167. item: Execute Program
  168.   Pathname=%TEMP%\WIDGETUP.EXE
  169.   Flags=00000010
  170. end
  171. item: Edit INI File
  172.   Pathname=%WIN%\WIDGET.INI
  173.   Settings=[UPGRADE]
  174.   Settings=VERSION=%RELEASEVERSION%
  175.   Settings=
  176. end
  177. item: End Block
  178. end
  179. item: End Block
  180. end
  181. item: End Block
  182. end
  183. item: Edit INI File
  184.   Pathname=%WIN%\WIDGET.INI
  185.   Settings=[UPGRADE]
  186.   Settings=MONTH=%CURRMONTH%
  187.   Settings=
  188. end
  189. item: End Block
  190. end
  191. item: Read INI Value
  192.   Variable=EXECUTE
  193.   Pathname=%WIN%\WIDGET.INI
  194.   Section=UPGRADE
  195.   Item=EXE
  196. end
  197. item: Execute Program
  198.   Pathname=%EXECUTE%
  199. end
  200.